package Strategy.Before;

/**
 * This class demonstrates how a user playing a zelda type game
 * would have to deal with user input. If we didn't have the command
 * pattern we would have a hard time letting the user pick more than
 * one spell at a time. This is an example of what we'd have to do:
 *
 */
public class Game
{

    /**
     * As you can see we can only cast one spell at a time, then we
     * wait for user input.
     *
     */
    public static void main( String[] args )
    {
        Key userInput = getUserKeyInput();
        if( userInput.equals( "c") )
        {
            //Cast Cloak Spell. This makes you invisible.
        }
        else if( userInput.equals( "d") )
        {
            //Cast the darkness spell. 
        }
        else if( userInput.equals( "f" ) )
        {
            //Cast the freeze enemy spell.
        }


    }

    public static Key getUserKeyInput()
    {
        return new Key();
    }

}

class Key
{
    
}